<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link href="themes01/default/clientPublic.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/codeMgr.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/tabSwitch.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="javascripts01/jquery.js"></script>
<script type="text/javascript" src="javascripts01/common.js"></script>
<script language="javascript" type="text/javascript" src="DatePicker/WdatePicker.js"></script>
<title>Office 515158 2011 OA办公系统</title>
 
</head>
<body>
<div id="Holder">
<div id="MainPage">

 
 
<div id="Subnav">
 
<ul>
<?php
//定义标题
if ($_GET[type]=='1'){
$news_title='新闻';
////
if($_GET[muid]=='3'){
$nums=26;
}else{
$nums=69;
}
////
}elseif($_GET[type]=='3'){
$news_title='公告';
//$nums=27;
if($_GET[muid]=='3'){
$nums=27;
}else{
$nums=71;
}
}elseif($_GET[type]=='4'){
$news_title='通知';
//$nums=28;
if($_GET[muid]=='3'){
$nums=28;
}else{
$nums=70;
}
}elseif($_GET[type]=='5'){
$news_title='大事记';
//$nums=29;
if($_GET[muid]=='3'){
$nums=29;
}else{
$nums=68;
}
}elseif($_GET[type]=='6'){
$news_title='电子期刊';
//$nums=30;
if($_GET[muid]=='3'){
$nums=30;
}else{
$nums=67;
}
}else{
}
//====================


global $db;
$query = $db->query("SELECT * FROM ".DB_TABLEPRE."menu where fatherid='".$_GET[muid]."' and menutype='0' ORDER BY menunum Asc");
	while ($row = $db->fetch_array($query)) {
?>
<li><a href="<?=$row[menuurl]?>"  <? if($nums==$row[menuid]){?> id="Subnavb"<? }?>><?=$row[menuname]?></a></li>
<?php
	}
	
?>


</ul>
</div>
<div id="MainBody">

<form name="update" method="post" action="?ac=news_type&fileurl=news&type=<?=$type?>&do=update&muid=<?=$_GET[muid]?>">
<div id="CodeWrap">
<div id="TabSwitch">
<ul>

<li><a href="admin.php?ac=index&fileurl=news&type=<?=$_GET[type]?>&newstype=read&muid=<?=$_GET[muid]?>"><?=$news_title?>列表</a></li>
<li class="active"><a href="admin.php?ac=news_type&fileurl=news&type=<?=$_GET[type]?>&newstype=read&muid=<?=$_GET[muid]?>"><?=$news_title?>类别设置</a></li>
<li><img src="themes01/default/images/addicon.gif" width="10" height="10" />&nbsp;<a href="admin.php?ac=add&fileurl=news&type=<?=$_GET[type]?>&muid=<?=$_GET[muid]?>">发布<?=$news_title?></a></li>
</ul>

 
</div>
<div id="CodeShowBlockWrap">
<div id="QueryBar">
<div id="FilterWrap">
<label for="FilterStatus"><table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
  <tr>
    <td width="15%"></td>
    <td width="85%" align="left">&nbsp;&nbsp;&nbsp;&nbsp;</td>
  </tr>
</table>
</label>
</div>
</div>

<div id="CodeShowBlock">
<table cellpadding="0" cellspacing="0" class="data-box"><thead>
<tr class="border-in">
<th width="36"><div>序号</div></th>
<th class="title"><div>名称</div></th>
<th class="status"><div>操作</div></th>
</tr>
</thead><tbody>

<?foreach ($result as $row) {?>
<tr class="data-box-row"><td width="36" align="center"><?=$row['nid']?></td>
<td class="title"><input type="text" name="name[<?=$row['nid']?>]" value="<?=$row['ntitle']?>" />
						</td>
<td class="scale"><a href="?ac=news_type&fileurl=news&type=<?=$type?>&do=delete&id=<?=$row['nid']?>&muid=<?=$_GET[muid]?>" >删除</a></td>
					
						
						</tr>
<?}?>
<tr class="data-box-row"><td width="36" align="center"></td>
<td class="title"></td>
<td class="scale"></td>
					
						
						</tr>

</tbody></table>
 
</div>
<div id="PageControl">
<div class="page-control">
<div class="border-in">
<table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
  <tr>
    <td width="80%">新 增&nbsp;<input type="text" name="newname" value="" />&nbsp;&nbsp;<input type="submit" name="Submit" value="保 存" class="submit"></td>
    <td width="20%" align="left">&nbsp;&nbsp;&nbsp;&nbsp;</td>
  </tr>
</table>
  

</div>
</div>
</div>
</div>
</div>
 </form>
</div>
</div>
</div>
 
<script language="javascript" src="javascripts01/tangram-1.3.1.js" type="text/javascript"></script>
<script language="javascript" src="javascripts01/elf.js" type="text/javascript"></script>
<script language="javascript" src="javascripts01/union.js" type="text/javascript"></script>
<script language="javascript" src="javascripts01/codeMgr.js" type="text/javascript"></script>
 
</body>
</html>
